package se.sll.service.catalogue.common.rest.model.user;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 *
 * @author Jiri Uosukainen
 */
@SuppressWarnings("PMD.UnusedPrivateField")
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
@Data
@EqualsAndHashCode(exclude = {"careUnits"})
@JsonIgnoreProperties(ignoreUnknown = true)
public class User implements Serializable {
    
    private String status;
    private String role;
    private String createdByHsaId;
    private String sourceSystemHsaId;
    private String realname;
    private String email;
    private String hsaId;

    private Date creationTime;
    private Date updatedTime;
    private Date lastLogin;
    
    private List<CareUnitReference> careUnits;
}
